<template>
   <div class="app-container background">
    <div class="loginBox">
      <div class="login-form">
        <el-row :gutter="16">
          <el-col :span="24">
             <!-- 添加的Logo部分 -->
            <div class="logo-container">
              <img src="@/assets/openid.png" alt="Logo" class="login-logo">
            </div>
            <div class="login-main-title">Sign in to OpenIddict</div>
          </el-col>
        </el-row>
        <el-row :gutter="16">
          <el-col :span="24">
            <LoginForm />
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup name="Login">
import LoginForm from "./components/LoginForm.vue";
</script>
<style lang="scss" scoped>
.background {
  background: white;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.loginBox {
  padding-top: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  width: 340px;
  padding: 20px;
  border-radius: 6px;
  // box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  // background-color: white;
  text-align: center;
}

/* 新增的Logo样式 */
.logo-container {
  margin-bottom: 20px;
  text-align: center;
}

.login-logo {
  height: 48px; /* 根据实际Logo调整大小 */
  width: auto;
  max-width: 100%;
}


.login-main-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: #24292f;
  margin-bottom: 20px;
}

.footer-links {
  margin-top: 40px;
  border-top: 1px solid #d8dee4;
  padding-top: 16px;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.links-container a {
  font-size: 12px;
  color: #0969da;
  text-decoration: none;
}

.links-container a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .login-form {
    width: 95vw;
    min-width: unset;
    padding: 10px;
  }
  .loginBox {
    align-items: flex-start;
    justify-content: flex-start;
    height: 100vh;
  }
  .background {
    padding: 0;
  }
}
</style>
